package com.rem.springIocAnnotation.service;

import com.rem.springIocAnnotation.dao.UserDao;
import com.rem.springIocAnnotation.entity.User;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @author Rem
 * @date 2023/2/28
 */
@Service
public class UserServiceImpl2 implements UserService {

    @Resource
    private UserDao userDao;

    @Override
    public void saveUser(User user) {
        System.out.println(this.getClass().getName());
        userDao.saveUser(user);
    }
}
